<template>
  <div id="#app">
    <!--    路由部分-->
    <router-view></router-view>
    <!--    显示隐藏index.js中底部模块-->
    <footer-guide v-if="$route.meta.showFooter"></footer-guide>
  </div>
</template>

<script>
// 映射函数
import {mapActions} from 'vuex'
import FooterGuide from './components/FooterGuide/FooterGuide'

export default {
  mounted () {
    // this.$store.dispatch('getAddress')
    this.getAddress()
    this.getUserInfo()
  },
  methods: {
    ...mapActions(['getAddress','getUserInfo'])
  },
  // 引入底部组件文件夹
  components: {
    FooterGuide
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
*
  margin 0
  padding 0

.app
  width 100%
  height 100%
  background #f5f5f5
</style>
